{if $Request.param.type=='goods_body'}
<a href="javascript:void(0);" dstype="meai_cancel" class="dssc-btn mt5"><i class="iconfont">&#xe67a;</i>关闭相册</a>
{/if}
<div class="goods-gallery add-step2">
    <a class='sample_demo' id="select_submit" href="{:url('FuwuManageGoods/pic_list',['type'=>$Request.param.type,'item'=>$Request.param.item])}" style="display:none;">{$Think.lang.ds_submit}</a>
    
    {notempty name="pic_list"}
    <ul class="list">
        {foreach name="pic_list" item="v"}
        <li onclick="{if $Request.param.item=='goods_body'}{if $Request.param.type == 'replace'}replace{else/}insert{/if}_mobile_img('{:get_o2o_fuwu_file($v.o2o_fuwu_organization_id,$v.o2o_fuwu_upload_url,$Request.param.item)}'){else}insert_img('{$v.o2o_fuwu_upload_url}','{:get_o2o_fuwu_file($v.o2o_fuwu_organization_id,$v.o2o_fuwu_upload_url,$Request.param.item)}'){/if}"><a href="JavaScript:void(0);"><img src="{:get_o2o_fuwu_file($v.o2o_fuwu_organization_id,$v.o2o_fuwu_upload_url,$Request.param.item)}"/></a></li>
        {/foreach}
    </ul>
    {else /}
    <div class="warning-option"><i class="iconfont">&#xe64c;</i><span>相册中暂无图片</span></div>
    {/notempty}
    <div>{$show_page}</div>
</div>
<script type="text/javascript">
$(function(){
    $('ul.pagination li a').ajaxContent({
        event:'click', //mouseover
        loaderType:'img',
        loadingMsg:'{$Think.HOME_SITE_ROOT}/images/loading.gif',
        target:'[dstype_pic="{$Request.param.item}"]'
    });

    $('[dstype="{$Request.param.item}"]').find('a[class="demo"]').click(function(){
        $('[dstype="{$Request.param.item}"]').load($(this).attr('href'));
        return false;
    });

});
</script>